package org.fdy.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * <p>说明： </P>
 *
 * @author: fangdayang
 * @create: 2023-10-19 23:54
 **/

@Getter
@AllArgsConstructor
public enum ResultCode {
    /**
     * 请求成功
     */
    SUCCESS(20000, "请求成功"),

    /**
     * 请求失败状态码
     */
    FAIL(40000, "请求失败"),
    /**
     * 参数有误
     */
    REQUEST_PARAMS_ERROR(40005, "参数有误"),
    CAPTCHA_ERROR(40007, "验证码错误"),
    RSA_ERROR(40008, "公钥错误"),
    PASSWORD_ERROR(40009, "账号或者密码错误"),
    NOT_LOGIN(40006,"用户未登录");
    private final Integer code;
    private final String message;

}
